﻿using System;

namespace SixthClassAssignment{
    public class Student{
        private String no;
        private String name;
        private String classNo;
        private String sex;

        public Student(string no, string name, string classNo, string sex){
            this.no = no;
            this.name = name;
            this.classNo = classNo;
            this.sex = sex;
        }

        public string No{
            get => no;
            set => no = value;
        }

        public string Name{
            get => name;
            set => name = value;
        }

        public string ClassNo{
            get => classNo;
            set => classNo = value;
        }

        public string Sex{
            get => sex;
            set => sex = value;
        }

        public override string ToString(){
            return "{" + no + " " + name + " " + classNo + " " + sex + "}";
        }
    }
}